package com.ruoyi.user.service;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.user.domain.bo.MyCourseBo;
import com.ruoyi.user.domain.bo.OneClassify;
import com.ruoyi.user.domain.bo.RegisterVo;
import com.ruoyi.user.domain.vo.UcenterMemberVo;
import com.ruoyi.user.domain.bo.UcenterMemberBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import javax.servlet.http.HttpSession;
import java.util.Collection;
import java.util.List;

/**
 * 用户Service接口
 *
 * @author 孟磊
 * @date 2022-08-18
 */
public interface IUcenterMemberService {

    /**
     * 查询用户
     */
    UcenterMemberVo queryById(String id);

    /**
     * 查询用户列表
     */
    TableDataInfo<UcenterMemberVo> queryPageList(UcenterMemberBo bo, PageQuery pageQuery);

    /**
     * 查询用户列表
     */
    List<UcenterMemberVo> queryList(UcenterMemberBo bo);

    /**
     * 新增用户
     */
    R insertByBo(UcenterMemberBo bo);

    /**
     * 修改用户
     */
    R updateByBo(UcenterMemberBo bo);

    /**
     * 校验并批量删除用户信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    R login(UcenterMemberBo bo);

    R register(RegisterVo ro);

    R query();


    List<OneClassify> queryclassify();

    List<OneClassify> queryTeacher();

    List<OneClassify> average();

    List<OneClassify> week();

    List<MyCourseBo> mycourse(int id);
}
